package org.cloudie.docs.editor.client.commands.generic;

import org.cloudie.docs.editor.client.commands.Command;

public class VirtualEntryAddCommand extends Command {

  public final static int serialUid = 18;

  private String id, image, label, tooltip, parent;
  private int x, y, tray;
  private boolean distribute = false;
  private Command action;
  
  public VirtualEntryAddCommand(String id, String label, String image, String tooltip,
		String parent, int x, int y, int tray, Command action) {
	super("Add virtual entry.");
	this.id = id;
    this.image = image;
    this.label = label;
    this.tooltip = tooltip;
    this.parent = parent;
    this.x = x;
    this.y = y;
    this.tray = tray;
    this.action = action;
  }

  public String getId() {
	return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getImage() {
    return image;
  }

  public void setImage(String image) {
    this.image = image;
  }

  public String getLabel() {
    return label;
  }

  public void setLabel(String label) {
    this.label = label;
  }

  public String getTooltip() {
    return tooltip;
  }

  public void setTooltip(String tooltip) {
    this.tooltip = tooltip;
  }

  public String getParent() {
    return parent;
  }

  public void setParent(String parent) {
    this.parent = parent;
  }

  public int getX() {
    return x;
  }

  public void setX(int x) {
    this.x = x;
  }

  public int getY() {
    return y;
  }

  public void setY(int y) {
    this.y = y;
  }

  public int getTray() {
    return tray;
  }

  public void setTray(int tray) {
    this.tray = tray;
  }

  public Command getAction() {
    return action;
  }

  public void setAction(Command action) {
    this.action = action;
  }
  
  public boolean isDistribute() {
    return distribute;
  }

  public void setDistribute(boolean distribute) {
    this.distribute = distribute;
  }

  @Override
  public int getCommandId() {
    return serialUid;
  }

}